package com.wangshidai.form.rolePermission;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Set;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AlterRolePermissionFrom {
    @NotNull(message ="角色id不能为空")
    @ApiModelProperty(name = "roleId",value="角色id",example="1")
    private Long roleId;
    @ApiModelProperty(name = "permissionIds",value="权限id集合",example="1,2,3,4")
    private Set<Long> permissionIds;
}
